import request from '@/utils/request'

// 查询拖轮电脑远程操控列表
export function listRemote(query) {
  return request({
    url: '/remoteControl/remote/list',
    method: 'get',
    params: query
  })
}
// MQTT发起远控
export function install(deviceClientId){
  return request({
    url: '/remoteControl/install/',
    method: 'post',
    data: deviceClientId
  })
}

// MQTT结束远控
export function uninstall(deviceClientId){
  return request({
    url: '/remoteControl/uninstall/',
    method: 'post',
    data: deviceClientId
  })
}

export function openWeb(deviceClientId){
  return request({
    url: '/remoteControl/openWeb/',
    method: 'post',
    data: deviceClientId
  })
}

export function deleteDevice(deviceClientId) {
  return request({
    url: '/remoteControl/remote/deleteDevice',
    method: 'get',
    params: deviceClientId
  })
}